package com.multi.thread.chapter03.demo12;

import java.io.PipedInputStream;

public class ThreadRead extends Thread {
	
	private ReadData readData;
	private PipedInputStream in;
	
	public ThreadRead(ReadData readData, PipedInputStream in) {
		this.readData = readData;
		this.in = in;
	}
	
	@Override
	public void run() {
		readData.readMethod(in);
	}

}
